package com.ruoyi.basedata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小表日用量和抄表率视图对象 v_t_terminals_freeze_xb_view
 *
 * @author gdqt
 * @date 2024-03-18
 */
@TableName("v_t_terminals_freeze_xb_view")
public class TerminalsFreezeXbView {
    private static final long serialVersionUID = 1L;

    /**
     * 设备归属租户
     */
    @Excel(name = "设备归属租户")
    @TableField("tenant_id")
    private String tenantId;

    /**
     * 冻结时间（日/月）
     */
    @Excel(name = "冻结时间", readConverterExp = "日=/月")
    @TableField("freeze_time")
    private String freezeTime;

    /**
     * 日用量
     */
    @Excel(name = "日用量")
    @TableField("cumulative_flow")
    private BigDecimal cumulativeFlow;

    /**
     * 抄表率
     */
    @Excel(name = "抄表率")
    @TableField("cbl")
    private BigDecimal cbl;

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setFreezeTime(String freezeTime) {
        this.freezeTime = freezeTime;
    }

    public String getFreezeTime() {
        return freezeTime;
    }

    public void setCumulativeFlow(BigDecimal cumulativeFlow) {
        this.cumulativeFlow = cumulativeFlow;
    }

    public BigDecimal getCumulativeFlow() {
        return cumulativeFlow;
    }

    public void setCbl(BigDecimal cbl) {
        this.cbl = cbl;
    }

    public BigDecimal getCbl() {
        return cbl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tenantId", getTenantId())
                .append("freezeTime", getFreezeTime())
                .append("cumulativeFlow", getCumulativeFlow())
                .append("cbl", getCbl())
                .toString();
    }
}
